package com.share51.novel.common.utils;

/**
 * html 数据处理工具
 * @author gb
 */
public class HtmlUtil {

    public static String htmlToText(String html){
        return html
                .replaceAll("<br/>|<br>","\r\n")
                .replaceAll("\\&[a-zA-Z]{1,10};", "")
                .replaceAll("<[^>]*>", "")
                .replaceAll("[(/>)<]", "")
                .replaceAll("&nbsp;&nbsp;", " ");
    }
}
